package cn.edu.xhu.library_management.user.service;

import cn.edu.xhu.library_management.user.entity.LmReservation;
import cn.edu.xhu.library_management.user.entity.pojo.LmBook;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 21086
* @description 针对表【lm_reservation(预约表)】的数据库操作Service
* @createDate 2023-04-29 09:26:00
*/
public interface LmReservationService extends IService<LmReservation> {

    /**
     * 预约图书
     * @param reservation 预约对象
     * @return 预测成功 true 否则 false
     */
    boolean reservationBook(LmReservation reservation);

    /**
     * 获取预约记录的图书信息
     * @param userAccount 用户账号
     * @return 图书集合
     */
    List<LmBook> getReservationBook(String userAccount);
}
